#define  _CRT_SECURE_NO_WARNINGS 1
//day10
int Add(int num1, int num2 ) {
    while (num2 != 0) {
        int temp = num1;
        num1 = num1 ^ num2;
        num2 = ((temp & num2) << 1);
    }
    return num1;
}
int* findDisappearedNumbers(int* nums, int numsSize, int* returnSize) {
    *returnSize = 0;
    int* ret = (int*)malloc(sizeof(int) * numsSize);
    for (int i = 0; i < numsSize; i++) {
        if (nums[abs(nums[i]) - 1] > 0) {
            nums[abs(nums[i]) - 1] = -(nums[abs(nums[i]) - 1]);
        }
    }
    for (int i = 0; i < numsSize; i++) {
        if (nums[i] > 0) {
            ret[*returnSize] = i + 1;
            *returnSize += 1;
        }
    }
    return ret;
}